package lab02.test22;

/**
 * Created by 阿阿阿阿豪丶 on 2017/11/1.
 */
public class Test {
    public Test() {
    }

    public static void main(String[] args) {
        String result = "Hello, 2017, World!";
        StringBuffer stringBuffer = new StringBuffer();
        new StringBuilder();

        for(int i = 0; i < result.length(); ++i) {
            char temp = result.charAt(i);
            if(temp >= 65 && temp <= 90) {
                stringBuffer.append((char)(temp + 32));
            } else if(temp >= 48 && temp <= 57) {
                stringBuffer.append("0");
            } else if(temp >= 97 && temp <= 122) {
                stringBuffer.append(temp);
            } else {
                stringBuffer.append("#");
            }
        }

        System.out.println(stringBuffer.toString());
    }
}
